package com.lemontree.spring.aoptalk;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

//@Component
@Aspect
public class AspectJTest2 {

        @Before("execution(* com.lemontree.spring..*(..))")
        public void before(JoinPoint joinPoint){
            System.out.println("say hey!");
            System.out.println(joinPoint.getSignature().getName());
        }
}
